Hello Falk's, does anyone know, how renaming buttons work?
STB Scaramouch - Thu Feb 27 04:05:29 EST 2014 |
Re: DXL: rename buttons I don't think you can rename a "button" after the realize. set(dbeButton, "SomeNewLabel") fails. But if you know ahead of time the finite set of available button labels, you can create that many Buttons, one on top of the other, and hide or show them as needed. To demonstrate, run the following and push the button a few times.
Notice all the buttons are associated with the same callback buttonChange(). Haven't had luck with the "stacked(DBE)" command, maybe someone can show how that is used. -Louie |
Re: DXL: rename buttons llandale - Fri Feb 28 13:00:30 EST 2014 I don't think you can rename a "button" after the realize. set(dbeButton, "SomeNewLabel") fails. But if you know ahead of time the finite set of available button labels, you can create that many Buttons, one on top of the other, and hide or show them as needed. To demonstrate, run the following and push the button a few times.
Notice all the buttons are associated with the same callback buttonChange(). Haven't had luck with the "stacked(DBE)" command, maybe someone can show how that is used. -Louie Thank you very much. STB |
Re: DXL: rename buttons llandale - Fri Feb 28 13:00:30 EST 2014 I don't think you can rename a "button" after the realize. set(dbeButton, "SomeNewLabel") fails. But if you know ahead of time the finite set of available button labels, you can create that many Buttons, one on top of the other, and hide or show them as needed. To demonstrate, run the following and push the button a few times.
Notice all the buttons are associated with the same callback buttonChange(). Haven't had luck with the "stacked(DBE)" command, maybe someone can show how that is used. -Louie Hi Louie ! You can try this syntax
dbe1 = button(db, "Button 1111", buttonChange) and remove the constrained placement ... but i can't help you if you need to "reset" the stacked feature in order to be abble to stack an other set of DBE ... maybe someone else ? ;) |